package com.itany.service;

import com.github.pagehelper.PageInfo;
import com.itany.exception.ManagerServiceException;
import com.itany.pojo.Permission;

import java.util.List;

public interface PermissionService {


    PageInfo<Permission> findAllPermission(Integer page, Integer rows, String moduleName, String permissionName);

    List<Permission> findAllModules();

    void update(Permission p) throws ManagerServiceException;

    List<Permission> findAllModulesWithPermission();

    List<Permission> findAllModulesWithPermissionsByLoginUserId(Integer id);
}
